package com.example.day02.presenter;

import com.example.day02.base.BasePresenter;
import com.example.day02.bean.FuLiBean;
import com.example.day02.model.FuLICallBack;
import com.example.day02.model.FuLiModel;
import com.example.day02.view.FuLIView;

public class FuLiPresenter extends BasePresenter<FuLIView> implements FuLICallBack {
    public FuLiModel fuLiModel;

    @Override
    protected void initModel() {
        fuLiModel=new FuLiModel();
        addModel(fuLiModel);
    }
    public void getdata(){
        fuLiModel.modeldata(this);
    }
    @Override
    public void onSuccess(FuLiBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
